package com.internal.datamodel;

import java.util.ArrayList;
import java.util.List;

import com.persistances.entities.Album;

public class NodeAlbum implements Comparable<Album>{

	private List<NodeSong> nodeSong;
	private Album entitiesAlbum;
	public List<NodeSong> getNodeSong() {
		if(nodeSong != null)
			return nodeSong;
		else {
			nodeSong =  new ArrayList<NodeSong>();
			return nodeSong;
		}
	}
	public void setNodeSong(List<NodeSong> nodeSong) {
		this.nodeSong = nodeSong;
	}
	public Album getEntitiesAlbum() {
		return entitiesAlbum;
	}
	public void setEntitiesAlbum(Album entitiesAlbum) {
		this.entitiesAlbum = entitiesAlbum;
	}

	@Override
	public String toString(){
		
		return entitiesAlbum.getName();
	}
	public int compareTo(Album o) {
		
		return entitiesAlbum.getName().compareTo(o.getName());
	}
}
